package com.lu.study.lu.mybatis.plus.code.generator.demo.demo;

import com.lu.study.lu.base.framework.util.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @CreateDate 2022/4/25 16:31 (星期一)
 * @ClassName DemoMybatisPlusGeneratorApplication
 * @Name lu-framework
 * @Author RaoLuPing
 * @Version 1.0
 * @Description TODO
 **/
@SpringBootApplication
@MapperScan(basePackages = {"com.lu.study.lu.mybatis.plus.code.generator.demo.demo.mapper"})
@ComponentScan(basePackages = {"com.lu.study.lu.base.framework", "com.lu.study.lu.mybatis.plus.code.generator.demo.demo"})
public class DemoMybatisPlusGeneratorApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(DemoMybatisPlusGeneratorApplication.class, args);
        SpringContextUtil.setApplicationContext(applicationContext);

    }
}
